import { get, post } from "../request";

const pointsApi = {
  addPoints: data => post('/points-inf/addPoints',data,{'Content-Type': 'multipart/form-data'}),
  updatePoints: data => post('/points-inf/updatePoints',data,{'Content-Type': 'multipart/form-data'}),
  // addPoints: data => post('/points/upload',data,{'Content-Type': 'multipart/form-data'}),
  // updatePoints: data => post('/points/upload',data,{'Content-Type': 'multipart/form-data'}),
  getList: (page=1,size=10,id) => {
    let params = {currentPage: page,count:size,locationId: id}
    return get('/points-inf/getPoints',params)
    // return get('/points/list',params)
  },
  delPoints(id) {
    return get(`/points-inf/delPoints`,{id})
  },
  getPoints(locationId) {
    return get(`/map-inf/selectPointList`,{locationId})
  }
}

export default pointsApi